home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIPanels.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  11KB  |  316 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIPanels.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIPanel_h
  11. #define SOM_HIPanel_h
  12.  
  13.  
  14. /*
  15.  * Passthru lines: File: "C.h", "before"
  16.  */
  17. #include <Collections.h>
  18. #include <Drag.h>
  19. #include <Quickdraw.h>
  20. #include <TextObjects.h>
  21. #include <Types.h>
  22. #include <HIPanelTypes.h>
  23.  
  24. #include <som.h>
  25.  
  26. /*
  27.  * -- This emitter treats Method Tokens as Thunks by default.
  28.  * -- Use the sc modifier "nothunks" to change this default
  29.  */
  30. #undef somresolve_
  31. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  32.  
  33. /*
  34.  * Define the class name as an object type
  35.  */
  36. #ifndef HIPanel
  37. #define HIPanel SOMObject
  38. #endif
  39. #include <HIObjects.h>
  40.  
  41. /*
  42.  * Start of user-defined types:
  43.  */
  44. #ifndef SOMClass
  45.     #define SOMClass SOMObject
  46. #endif /* SOMClass */
  47. #ifndef SOMObject
  48.     #define SOMObject SOMObject
  49. #endif /* SOMObject */
  50. #ifndef HIWindow
  51.     #define HIWindow SOMObject
  52. #endif /* HIWindow */
  53. #ifndef HIEmbeddingPanel
  54.     #define HIEmbeddingPanel SOMObject
  55. #endif /* HIEmbeddingPanel */
  56.  
  57. /*
  58.  * End of user-defined types.
  59.  */
  60.  
  61. #define HIPanel_MajorVersion 0
  62. #define HIPanel_MinorVersion 0
  63.  
  64. /*
  65.  * External name shortening if required
  66.  */
  67. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  68. #define HIPanelClassData d
  69. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  70. /*--------------Migration------------*/
  71.  
  72. #ifdef OLDIBMSOMAPISUPPORT
  73. #define HIPanel_classObj somNewClassReference(HIPanel)
  74. #define _HIPanel HIPanel_classObj
  75. #define HIPanelCClassData HIPanelClassData
  76. #define HIPanelNewClass(major,minor) somNewVersionedClassReference(HIPanel,major,minor)
  77. #endif
  78.  
  79. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  80. #define HIPanelMetaClass SOMClass
  81.  
  82. #if PRAGMA_ALIGN_SUPPORTED
  83. #  pragma options align=power
  84. #endif
  85.  
  86. /*
  87.  * Declare the class data structure
  88.  */
  89. SOMEXTERN struct HIPanelClassDataStructure {
  90. #ifdef OLDIBMSOMAPISUPPORT
  91.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  92. #else
  93.     long zero;
  94. #endif
  95.     somStaticClassInfo *sci;
  96.     somDToken        instanceDataToken;
  97.     long reserved [3];
  98.     somMToken InitPanel;
  99.     somMToken GetEmbeddingParent;
  100.     somMToken RegisterInterestInAppleEvent;
  101.     somMToken SetAdornment;
  102.     somMToken GetAdornment;
  103.     somMToken HasValidContent;
  104.     somMToken GetDeepCollectionItemData;
  105.     somMToken reserved0;
  106.     somMToken reserved1;
  107.     somMToken reserved2;
  108.     somMToken reserved3;
  109.     somMToken reserved4;
  110. } SOMDLINK HIPanelClassData;
  111.  
  112. #if PRAGMA_ALIGN_SUPPORTED
  113. #  pragma options align=reset
  114. #endif
  115.  
  116. #if !defined(HIPanel_Class_Source) && !defined(SOM_Module_hipanels_Source)
  117. #if PRAGMA_IMPORT_SUPPORTED
  118. #pragma import list HIPanelClassData
  119. #endif
  120. #endif
  121.  
  122.  
  123. /*
  124.  * New macro for HIPanel
  125.  */
  126. #define HIPanelNew() somNewObject(HIPanel)
  127.  
  128. /*
  129.  * New Method: GetEmbeddingParent
  130.  */
  131. typedef HIEmbeddingPanel*   (SOMLINK *somTD_HIPanel_GetEmbeddingParent)(HIPanel *somSelf, Environment *ev);
  132. #define somMD_HIPanel_GetEmbeddingParent "::HIPanel::GetEmbeddingParent"
  133. #define HIPanel_GetEmbeddingParent(somSelf,ev) \
  134.     (SOM_Resolve(somSelf, HIPanel, GetEmbeddingParent) \
  135.     (somSelf,ev))
  136. #ifndef SOMGD_GetEmbeddingParent
  137.     #if defined _GetEmbeddingParent || defined __GetEmbeddingParent
  138.         #undef _GetEmbeddingParent
  139.         #undef __GetEmbeddingParent
  140.         #define SOMGD_GetEmbeddingParent 1
  141.     #else
  142.         #define _GetEmbeddingParent HIPanel_GetEmbeddingParent
  143.     #endif /* _GetEmbeddingParent */
  144. #endif /* SOMGD_GetEmbeddingParent */
  145.  
  146. /*
  147.  * New Method: InitPanel
  148.  */
  149. typedef OSStatus   (SOMLINK *somTD_HIPanel_InitPanel)(HIPanel *somSelf, Environment *ev,
  150.         RefLabel* identifier,
  151.         HIWindow* window,
  152.         Rect* bounds);
  153. #define somMD_HIPanel_InitPanel "::HIPanel::InitPanel"
  154. #define HIPanel_InitPanel(somSelf,ev,identifier,window,bounds) \
  155.     (SOM_Resolve(somSelf, HIPanel, InitPanel) \
  156.     (somSelf,ev,identifier,window,bounds))
  157. #ifndef SOMGD_InitPanel
  158.     #if defined _InitPanel || defined __InitPanel
  159.         #undef _InitPanel
  160.         #undef __InitPanel
  161.         #define SOMGD_InitPanel 1
  162.     #else
  163.         #define _InitPanel HIPanel_InitPanel
  164.     #endif /* _InitPanel */
  165. #endif /* SOMGD_InitPanel */
  166.  
  167. /*
  168.  * New Method: RegisterInterestInAppleEvent
  169.  */
  170. typedef OSStatus   (SOMLINK *somTD_HIPanel_RegisterInterestInAppleEvent)(HIPanel *somSelf, Environment *ev,
  171.         AEHandlerTableRef table,
  172.         AEEventClass eventClass,
  173.         AEEventID eventID,
  174.         HIEventRoutingType eventRouting);
  175. #define somMD_HIPanel_RegisterInterestInAppleEvent "::HIPanel::RegisterInterestInAppleEvent"
  176. #define HIPanel_RegisterInterestInAppleEvent(somSelf,ev,table,eventClass,eventID,eventRouting) \
  177.     (SOM_Resolve(somSelf, HIPanel, RegisterInterestInAppleEvent) \
  178.     (somSelf,ev,table,eventClass,eventID,eventRouting))
  179. #ifndef SOMGD_RegisterInterestInAppleEvent
  180.     #if defined _RegisterInterestInAppleEvent || defined __RegisterInterestInAppleEvent
  181.         #undef _RegisterInterestInAppleEvent
  182.         #undef __RegisterInterestInAppleEvent
  183.         #define SOMGD_RegisterInterestInAppleEvent 1
  184.     #else
  185.         #define _RegisterInterestInAppleEvent HIPanel_RegisterInterestInAppleEvent
  186.     #endif /* _RegisterInterestInAppleEvent */
  187. #endif /* SOMGD_RegisterInterestInAppleEvent */
  188.  
  189. /*
  190.  * New Method: HasValidContent
  191.  */
  192. typedef boolean   (SOMLINK *somTD_HIPanel_HasValidContent)(HIPanel *somSelf, Environment *ev);
  193. #define somMD_HIPanel_HasValidContent "::HIPanel::HasValidContent"
  194. #define HIPanel_HasValidContent(somSelf,ev) \
  195.     (SOM_Resolve(somSelf, HIPanel, HasValidContent) \
  196.     (somSelf,ev))
  197. #ifndef SOMGD_HasValidContent
  198.     #if defined _HasValidContent || defined __HasValidContent
  199.         #undef _HasValidContent
  200.         #undef __HasValidContent
  201.         #define SOMGD_HasValidContent 1
  202.     #else
  203.         #define _HasValidContent HIPanel_HasValidContent
  204.     #endif /* _HasValidContent */
  205. #endif /* SOMGD_HasValidContent */
  206.  
  207. /*
  208.  * New Method: GetDeepCollectionItemData
  209.  */
  210. typedef OSStatus   (SOMLINK *somTD_HIPanel_GetDeepCollectionItemData)(HIPanel *somSelf, Environment *ev,
  211.         CollectionTag tag,
  212.         SInt32 id,
  213.         ByteCount sizeAllowed,
  214.         ByteCount* sizeReturned,
  215.         void* itemData);
  216. #define somMD_HIPanel_GetDeepCollectionItemData "::HIPanel::GetDeepCollectionItemData"
  217. #define HIPanel_GetDeepCollectionItemData(somSelf,ev,tag,id,sizeAllowed,sizeReturned,itemData) \
  218.     (SOM_Resolve(somSelf, HIPanel, GetDeepCollectionItemData) \
  219.     (somSelf,ev,tag,id,sizeAllowed,sizeReturned,itemData))
  220. #ifndef SOMGD_GetDeepCollectionItemData
  221.     #if defined _GetDeepCollectionItemData || defined __GetDeepCollectionItemData
  222.         #undef _GetDeepCollectionItemData
  223.         #undef __GetDeepCollectionItemData
  224.         #define SOMGD_GetDeepCollectionItemData 1
  225.     #else
  226.         #define _GetDeepCollectionItemData HIPanel_GetDeepCollectionItemData
  227.     #endif /* _GetDeepCollectionItemData */
  228. #endif /* SOMGD_GetDeepCollectionItemData */
  229. #ifndef SOM_DONT_USE_INHERITED_MACROS
  230. #define HIPanel_GetWindow HIObject_GetWindow
  231. #define HIPanel_GetPort HIObject_GetPort
  232. #define HIPanel_GetRefLabel HIObject_GetRefLabel
  233. #define HIPanel_GetCollection HIObject_GetCollection
  234. #define HIPanel_Init HIObject_Init
  235. #define HIPanel_Terminate HIObject_Terminate
  236. #define HIPanel_Clone HIObject_Clone
  237. #define HIPanel_Release HIObject_Release
  238. #define HIPanel_GetOwnerCount HIObject_GetOwnerCount
  239. #define HIPanel_InitFromAERecord HIObject_InitFromAERecord
  240. #define HIPanel_WriteToAERecord HIObject_WriteToAERecord
  241. #define HIPanel_CalculateOptimalSize HIObject_CalculateOptimalSize
  242. #define HIPanel_GetBoundingRect HIObject_GetBoundingRect
  243. #define HIPanel_SetBoundingRect HIObject_SetBoundingRect
  244. #define HIPanel_SetPosition HIObject_SetPosition
  245. #define HIPanel_SetSize HIObject_SetSize
  246. #define HIPanel_GetUpdateRect HIObject_GetUpdateRect
  247. #define HIPanel_Enable HIObject_Enable
  248. #define HIPanel_Disable HIObject_Disable
  249. #define HIPanel_IsEnabled HIObject_IsEnabled
  250. #define HIPanel_Show HIObject_Show
  251. #define HIPanel_Hide HIObject_Hide
  252. #define HIPanel_IsVisible HIObject_IsVisible
  253. #define HIPanel_HandleAppleEvent HIObject_HandleAppleEvent
  254. #define HIPanel_HandleActivate HIObject_HandleActivate
  255. #define HIPanel_HandleDeactivate HIObject_HandleDeactivate
  256. #define HIPanel_HandleNavigation HIObject_HandleNavigation
  257. #define HIPanel_HandleMouseDownInContent HIObject_HandleMouseDownInContent
  258. #define HIPanel_HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
  259. #define HIPanel_HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
  260. #define HIPanel_HandleMouseUpInContent HIObject_HandleMouseUpInContent
  261. #define HIPanel_TakeUserInputFocus HIObject_TakeUserInputFocus
  262. #define HIPanel_ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
  263. #define HIPanel_HasUserInputFocus HIObject_HasUserInputFocus
  264. #define HIPanel_CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
  265. #define HIPanel_SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
  266. #define HIPanel_GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
  267. #define HIPanel_SetTitle HIObject_SetTitle
  268. #define HIPanel_GetTitle HIObject_GetTitle
  269. #define HIPanel_Draw HIObject_Draw
  270. #define HIPanel_Erase HIObject_Erase
  271. #define HIPanel_Invalidate HIObject_Invalidate
  272. #define HIPanel_GetDrawingMode HIObject_GetDrawingMode
  273. #define HIPanel_SetDrawingMode HIObject_SetDrawingMode
  274. #define HIPanel_SetBackgroundPattern HIObject_SetBackgroundPattern
  275. #define HIPanel_GetBackgroundPattern HIObject_GetBackgroundPattern
  276. #define HIPanel_Cut HIObject_Cut
  277. #define HIPanel_Copy HIObject_Copy
  278. #define HIPanel_Paste HIObject_Paste
  279. #define HIPanel_Clear HIObject_Clear
  280. #define HIPanel_GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
  281. #define HIPanel_AddStateChangeCallback HIObject_AddStateChangeCallback
  282. #define HIPanel_RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
  283. #define HIPanel_GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
  284. #define HIPanel_GetNewHIObject HIObject_GetNewHIObject
  285. #define HIPanel_GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
  286. #define HIPanel_DrawContent HIObject_DrawContent
  287. #define HIPanel_EraseContent HIObject_EraseContent
  288. #define HIPanel_TranslatePoint HIObject_TranslatePoint
  289. #define HIPanel_TranslateRect HIObject_TranslateRect
  290. #define HIPanel_StateChanged HIObject_StateChanged
  291. #define HIPanel_SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
  292. #define HIPanel_Verify HIObject_Verify
  293. #define HIPanel_somInit SOMObject_somInit
  294. #define HIPanel_somUninit SOMObject_somUninit
  295. #define HIPanel_somDuplicateReference SOMObject_somDuplicateReference
  296. #define HIPanel_somCompareReference SOMObject_somCompareReference
  297. #define HIPanel_somRelease SOMObject_somRelease
  298. #define HIPanel_somFree SOMObject_somFree
  299. #define HIPanel_somCanDelete SOMObject_somCanDelete
  300. #define HIPanel_somGetClass SOMObject_somGetClass
  301. #define HIPanel_somGetClassName SOMObject_somGetClassName
  302. #define HIPanel_somGetSize SOMObject_somGetSize
  303. #define HIPanel_somIsA SOMObject_somIsA
  304. #define HIPanel_somRespondsTo SOMObject_somRespondsTo
  305. #define HIPanel_somIsInstanceOf SOMObject_somIsInstanceOf
  306. #define HIPanel_somDispatch SOMObject_somDispatch
  307. #define HIPanel_somClassDispatch SOMObject_somClassDispatch
  308. #define HIPanel_somCastObj SOMObject_somCastObj
  309. #define HIPanel_somResetObj SOMObject_somResetObj
  310. #define HIPanel_somPrintSelf SOMObject_somPrintSelf
  311. #define HIPanel_somDumpSelf SOMObject_somDumpSelf
  312. #define HIPanel_somDumpSelfInt SOMObject_somDumpSelfInt
  313. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  314.  
  315. #endif       /* SOM_HIPanel_h */
  316.